package com.x.mvp.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by Hwang on 2015/8/13.
 */
public class VerificationUtil {
    public static boolean isPhoneNumber(String telephone) {
        Pattern pattern = Pattern.compile("^1\\d{10}$");
        Matcher matcher = pattern.matcher(telephone);
        return matcher.matches();
    }
}
